//
//  GlobalHtmlVC.m
//  JMBaseProject
//
//  Created by Liuny on 2019/7/2.
//  Copyright © 2019 liuny. All rights reserved.
//

#import "JMGlobalHtmlVC.h"

@interface JMGlobalHtmlVC ()

@end

@implementation JMGlobalHtmlVC
//-(void)leftButtonEvent:(UIButton *)sender navigationBar:(JMNavigationBar *)navigationBar{
//    [self dismissViewControllerAnimated:YES completion:nil];
//    [self.navigationController popViewControllerAnimated:YES];
//}
-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
}
- (void)viewDidLoad {
    [super viewDidLoad];
//    self.fd_interactivePopDisabled = NO;
}
-(void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    [self initData];
}

-(void)payBtnClick{
    @weakify(self)
    [self dismissViewControllerAnimated:YES completion:^{
        @strongify(self)
        self.payBtnClickBlock();
    }];
}


-(void)initData{
    delayOperation(0, ^{
        [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.url]]];
    });

}


// 默认需要, 是否需要进度条
- (BOOL)webViewController:(JMWebViewController *)webViewController webViewIsNeedProgressIndicator:(WKWebView *)webView{
    return NO;
}
@end
